﻿
''' <summary>
''' IO端口离线配置类
''' </summary>
''' <remarks></remarks>
<Serializable()> _
Public Class IOPortTypeItem

    ''' <summary>
    ''' 构造函数
    ''' </summary>
    ''' <remarks></remarks>
    Public Sub New()

    End Sub


    Private _projectID As String
    Public Property ProjectID() As String
        Get
            Return _projectID
        End Get
        Set(ByVal value As String)
            _projectID = value
        End Set
    End Property


    Private _NetId As Integer '设备网络地址
    Public Property NetId() As Integer
        Get
            Return _NetId
        End Get
        Set(ByVal value As Integer)
            _NetId = value
        End Set
    End Property

    Private _RefId As Integer '冷库编号(范围:1~4)
    Public Property RefId() As Integer
        Get
            Return _RefId
        End Get
        Set(ByVal value As Integer)
            _RefId = value
        End Set
    End Property


    Private _SeqPortNo As Integer   '该冷库中的端口编号
    Public Property SeqPortNo() As Integer
        Get
            Return _SeqPortNo
        End Get
        Set(ByVal value As Integer)
            _SeqPortNo = value
        End Set
    End Property

    Private _PortType As Integer    '端口类型(1: AI; 2: DI; 3: DO)
    Public Property PortType() As Integer
        Get
            Return _PortType
        End Get
        Set(ByVal value As Integer)
            _PortType = value
        End Set
    End Property

    Private _PortNo As Integer   '配置的实际控制器的端口号
    Public Property PortNo() As Integer
        Get
            Return _PortNo
        End Get
        Set(ByVal value As Integer)
            _PortNo = value
        End Set
    End Property


    Private _PortName As String   'PortNo对应的端口名称
    Public Property PortName() As String
        Get
            Return _PortName
        End Get
        Set(ByVal value As String)
            _PortName = value
        End Set
    End Property

    Private _DataType As Integer '当前端口类型(1: 温度; 2: 湿度)
    Public Property DataType() As Integer
        Get
            Return _DataType
        End Get
        Set(ByVal value As Integer)
            _DataType = value
        End Set
    End Property

    Private _PortNoType As Integer '探头类型：0表示PT1000探头；1表示春长探头
    Public Property PortNoType() As Integer
        Get
            Return _PortNoType
        End Get
        Set(ByVal value As Integer)
            _PortNoType = value
        End Set
    End Property


End Class
